<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>ChompBombs:  Fichier source de /home/etu/c/p1006411/chompbombs/src/sdljeu.h</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<!-- Généré par Doxygen 1.7.3 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "search",false,'Recherche');
--></script>
<div id="top">
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">ChompBombs</div>
   <div id="projectbrief">Jeu_de_Bomberman</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Page&#160;principale</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Fichiers</span></a></li>
      <li id="searchli">
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Recherche" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>Liste&#160;des&#160;fichiers</span></a></li>
      <li><a href="globals.html"><span>Membres&#160;de&#160;fichier</span></a></li>
    </ul>
  </div>
<div class="header">
  <div class="headertitle">
<h1>/home/etu/c/p1006411/chompbombs/src/sdljeu.h</h1>  </div>
</div>
<div class="contents">
<a href="sdljeu_8h.html">Aller à la documentation de ce fichier.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 
<a name="l00008"></a>00008 <span class="preprocessor">#ifndef _SDLJEU_H</span>
<a name="l00009"></a>00009 <span class="preprocessor"></span><span class="preprocessor">#define _SDLJEU_H</span>
<a name="l00010"></a>00010 <span class="preprocessor"></span>
<a name="l00011"></a>00011 <span class="preprocessor">#include &lt;SDL/SDL.h&gt;</span>
<a name="l00012"></a>00012 <span class="preprocessor">#include &lt;SDL/SDL_getenv.h&gt;</span>
<a name="l00013"></a>00013 <span class="preprocessor">#include &quot;<a class="code" href="jeu_8h.html" title="module de gestion du jeu">jeu.h</a>&quot;</span>
<a name="l00014"></a>00014 
<a name="l00019"></a><a class="code" href="structsdlJeu.html">00019</a> <span class="keyword">typedef</span> <span class="keyword">struct</span>
<a name="l00020"></a>00020 {
<a name="l00021"></a><a class="code" href="structsdlJeu.html#a05488946012c9f103f9bb0ee180496f6">00021</a>         <a class="code" href="structjeu.html" title="contient un terrain et les differents personnages">jeu</a> <a class="code" href="structsdlJeu.html#a05488946012c9f103f9bb0ee180496f6">jeu</a>;
<a name="l00022"></a><a class="code" href="structsdlJeu.html#af309c208d357ee75a9dd30a4f243e0a9">00022</a>         SDL_Surface* <a class="code" href="structsdlJeu.html#af309c208d357ee75a9dd30a4f243e0a9">surface_ecran</a>;
<a name="l00023"></a><a class="code" href="structsdlJeu.html#a84761210cd089356048b09d81b4fbc9f">00023</a>         SDL_Surface* <a class="code" href="structsdlJeu.html#a84761210cd089356048b09d81b4fbc9f">surface_fond</a>;
<a name="l00024"></a><a class="code" href="structsdlJeu.html#a6ebadb1f851ec11609f5c9a16d53d9c6">00024</a>         SDL_Surface* <a class="code" href="structsdlJeu.html#a6ebadb1f851ec11609f5c9a16d53d9c6">mario</a>;
<a name="l00025"></a><a class="code" href="structsdlJeu.html#aa82490792102b5f1455a18134f435c73">00025</a>         SDL_Surface* <a class="code" href="structsdlJeu.html#aa82490792102b5f1455a18134f435c73">luigi</a>;
<a name="l00026"></a><a class="code" href="structsdlJeu.html#a707d5b70752ce7fb4dc4bbc673d72df4">00026</a>         SDL_Surface* <a class="code" href="structsdlJeu.html#a707d5b70752ce7fb4dc4bbc673d72df4">surface_mur</a>;
<a name="l00027"></a><a class="code" href="structsdlJeu.html#a441190ca4a4afc25d9994cf5b4add98f">00027</a>         SDL_Surface* <a class="code" href="structsdlJeu.html#a441190ca4a4afc25d9994cf5b4add98f">surface_caisse</a>;
<a name="l00028"></a><a class="code" href="structsdlJeu.html#aac0ad86ac88b9b72811aa14c47217725">00028</a>         SDL_Surface* <a class="code" href="structsdlJeu.html#aac0ad86ac88b9b72811aa14c47217725">herbe</a>;
<a name="l00029"></a><a class="code" href="structsdlJeu.html#a99320b1d8a426b38888d533dcf7a90e4">00029</a>         SDL_Surface** <a class="code" href="structsdlJeu.html#a99320b1d8a426b38888d533dcf7a90e4">surface_bombe</a>;
<a name="l00030"></a><a class="code" href="structsdlJeu.html#ad3bd8af5a20600ff4986950c1af16f5c">00030</a>         SDL_Surface* <a class="code" href="structsdlJeu.html#ad3bd8af5a20600ff4986950c1af16f5c">explh</a>;
<a name="l00031"></a><a class="code" href="structsdlJeu.html#aabae302f7482803808bc80301e972962">00031</a>         SDL_Surface* <a class="code" href="structsdlJeu.html#aabae302f7482803808bc80301e972962">explb</a>;
<a name="l00032"></a><a class="code" href="structsdlJeu.html#a6cef9521164e66fefa60a127acc59128">00032</a>         SDL_Surface* <a class="code" href="structsdlJeu.html#a6cef9521164e66fefa60a127acc59128">explg</a>;
<a name="l00033"></a><a class="code" href="structsdlJeu.html#aaea434db3deaf867f2226e6fe7b49dcd">00033</a>         SDL_Surface* <a class="code" href="structsdlJeu.html#aaea434db3deaf867f2226e6fe7b49dcd">expld</a>;
<a name="l00034"></a><a class="code" href="structsdlJeu.html#a920d63b63d713dc69507ae7b6b687c36">00034</a>     SDL_Surface* <a class="code" href="structsdlJeu.html#a920d63b63d713dc69507ae7b6b687c36">explhb</a>;
<a name="l00035"></a><a class="code" href="structsdlJeu.html#a45ea7b91e5508d588d47799da79b5f8e">00035</a>         SDL_Surface* <a class="code" href="structsdlJeu.html#a45ea7b91e5508d588d47799da79b5f8e">explgd</a>;
<a name="l00036"></a><a class="code" href="structsdlJeu.html#adba2906f008a9f624a0c8f194ccd7a1a">00036</a>         SDL_Surface* <a class="code" href="structsdlJeu.html#adba2906f008a9f624a0c8f194ccd7a1a">iconeluigi</a>;
<a name="l00037"></a><a class="code" href="structsdlJeu.html#ac9d81542bcd289314cbc17cb77ca4c3e">00037</a>         SDL_Surface* <a class="code" href="structsdlJeu.html#ac9d81542bcd289314cbc17cb77ca4c3e">iconemario</a>;
<a name="l00038"></a><a class="code" href="structsdlJeu.html#a2c7574c32bc826d49a63a0ef0c174073">00038</a>         SDL_Surface* <a class="code" href="structsdlJeu.html#a2c7574c32bc826d49a63a0ef0c174073">iconecoeur</a>;
<a name="l00039"></a><a class="code" href="structsdlJeu.html#a8952793ad598172bc573bb0a2831ee45">00039</a>         SDL_Surface* <a class="code" href="structsdlJeu.html#a8952793ad598172bc573bb0a2831ee45">iconepuiss</a>;
<a name="l00040"></a><a class="code" href="structsdlJeu.html#ae18081cf59589118bc2b07aa7fd0ee5f">00040</a>         SDL_Surface* <a class="code" href="structsdlJeu.html#ae18081cf59589118bc2b07aa7fd0ee5f">iconeetoile</a>;
<a name="l00041"></a><a class="code" href="structsdlJeu.html#a92a86969442921ff9d47731fe1bf5b8d">00041</a>         SDL_Surface* <a class="code" href="structsdlJeu.html#a92a86969442921ff9d47731fe1bf5b8d">iconebombe</a>;
<a name="l00042"></a><a class="code" href="structsdlJeu.html#ab6fbd69bb0152c963da29463833c958f">00042</a>         SDL_Surface** <a class="code" href="structsdlJeu.html#ab6fbd69bb0152c963da29463833c958f">surface_ennemi</a>;
<a name="l00043"></a><a class="code" href="structsdlJeu.html#a61e0f2e3fd278409a0db35ab5f81dd28">00043</a>         SDL_Surface* <a class="code" href="structsdlJeu.html#a61e0f2e3fd278409a0db35ab5f81dd28">surface_menu</a>;
<a name="l00044"></a><a class="code" href="structsdlJeu.html#a6316794f8815577f77df0af108e86b1b">00044</a>         SDL_Surface* <a class="code" href="structsdlJeu.html#a6316794f8815577f77df0af108e86b1b">gameover</a>;
<a name="l00045"></a>00045 } <a class="code" href="structsdlJeu.html" title="Contient les differentes surfaces utilisées par SDL.">sdlJeu</a>;
<a name="l00046"></a>00046 
<a name="l00054"></a>00054 <span class="keywordtype">void</span> <a class="code" href="sdljeu_8c.html#a91d50efe6cb2a0210ac7be37425b69c2" title="Initialise le jeu en mode SDL.">sdljeuInit</a>(<a class="code" href="structsdlJeu.html" title="Contient les differentes surfaces utilisées par SDL.">sdlJeu</a>*, <span class="keyword">const</span> <span class="keywordtype">int</span> numeroTerrain, <span class="keyword">const</span> <span class="keywordtype">int</span> mode);
<a name="l00055"></a>00055 
<a name="l00062"></a>00062 <span class="keywordtype">void</span> <a class="code" href="sdljeu_8c.html#a8dfd8bcc47ed58462abbcbc60dae47c2" title="Affiche la barre d&amp;#39;etat des joueurs.">sdlEtatAffiche</a>(<a class="code" href="structsdlJeu.html" title="Contient les differentes surfaces utilisées par SDL.">sdlJeu</a>* pSdlJeu, <span class="keyword">const</span> <span class="keywordtype">int</span> mode);
<a name="l00063"></a>00063 
<a name="l00070"></a>00070 <span class="keywordtype">void</span> <a class="code" href="sdljeu_8c.html#ab75491c5a7467ad457907cccf1950457" title="Affiche les bombes.">sdlBombeAffiche</a>(<a class="code" href="structsdlJeu.html" title="Contient les differentes surfaces utilisées par SDL.">sdlJeu</a>* pSdlJeu, <span class="keyword">const</span> <span class="keywordtype">int</span> i);
<a name="l00071"></a>00071 
<a name="l00078"></a>00078 <span class="keywordtype">void</span> <a class="code" href="sdljeu_8c.html#a32016319473715fc66da494de7336f68" title="Affiche le jeu en mode SDL.">sdljeuAff</a>(<a class="code" href="structsdlJeu.html" title="Contient les differentes surfaces utilisées par SDL.">sdlJeu</a> *pSdlJeu, <span class="keyword">const</span> <span class="keywordtype">int</span> mode);
<a name="l00079"></a>00079 
<a name="l00086"></a>00086 <span class="keywordtype">void</span> <a class="code" href="sdljeu_8c.html#acaec819142e0a8f582579c395dfd34a2" title="Gere le deroulement du jeu en mode SDL.">sdljeuBoucle</a>(<a class="code" href="structsdlJeu.html" title="Contient les differentes surfaces utilisées par SDL.">sdlJeu</a> *pSdlJeu, <span class="keyword">const</span> <span class="keywordtype">int</span> mode);
<a name="l00087"></a>00087 
<a name="l00093"></a>00093 <span class="keywordtype">int</span> <a class="code" href="sdljeu_8c.html#a49401288488d92f06ee4c52041ca2238" title="Affiche le menu principal du jeu.">sdlMenuPrincipal</a>(<a class="code" href="structsdlJeu.html" title="Contient les differentes surfaces utilisées par SDL.">sdlJeu</a>*);
<a name="l00094"></a>00094 
<a name="l00101"></a>00101 <span class="keywordtype">void</span> <a class="code" href="sdljeu_8c.html#a772855cc674619b58a733d408a122fa2" title="Affiche l&amp;#39;ecran de victoire ou de gameover.">sdlgameover</a>(<a class="code" href="structsdlJeu.html" title="Contient les differentes surfaces utilisées par SDL.">sdlJeu</a>* pSdlJeu, <span class="keyword">const</span> <span class="keywordtype">int</span> mode);
<a name="l00102"></a>00102 
<a name="l00108"></a>00108 <span class="keywordtype">int</span> <a class="code" href="sdljeu_8c.html#a87f8a5a2fce6f87ba7dc7c80c237570d" title="Affiche le menu de selection du niveau.">sdlSelectNiveau</a>(<a class="code" href="structsdlJeu.html" title="Contient les differentes surfaces utilisées par SDL.">sdlJeu</a>*);
<a name="l00109"></a>00109 
<a name="l00115"></a>00115 <span class="keywordtype">int</span> <a class="code" href="sdljeu_8c.html#a4b38b954f28bd0ae2479cbe359b289f7" title="Affiche le menu du mode 2 joueurs.">sdlSelectModeDeuxJoueurs</a>(<a class="code" href="structsdlJeu.html" title="Contient les differentes surfaces utilisées par SDL.">sdlJeu</a>*);
<a name="l00116"></a>00116 
<a name="l00122"></a>00122 <span class="keywordtype">void</span> <a class="code" href="sdljeu_8c.html#ac5e6c85058bb23f7d7911addf04820f3" title="Libere la memoire occupee par le jeu apres la fermeture du jeu.">sdljeuDetruit</a>(<a class="code" href="structsdlJeu.html" title="Contient les differentes surfaces utilisées par SDL.">sdlJeu</a>*);
<a name="l00123"></a>00123 
<a name="l00129"></a>00129 SDL_Surface *<a class="code" href="sdljeu_8c.html#aaf9c7736cab0f3cecd284f5fdb0b1683" title="Charge une image.">SDL_load_image</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* filename );
<a name="l00130"></a>00130 
<a name="l00139"></a>00139 <span class="keywordtype">void</span> <a class="code" href="sdljeu_8c.html#a695e055ca801891bb79cc6f68ecbf2ae" title="Affiche une image prealablement chargee.">SDL_apply_surface</a>(SDL_Surface* source, SDL_Surface* destination, <span class="keyword">const</span> <span class="keywordtype">int</span> <a class="code" href="structmario.html#a471a0794b59db313cc8cdf34f9e3c0ae">x</a>, <span class="keyword">const</span> <span class="keywordtype">int</span> <a class="code" href="structmario.html#a647e8bd98a553afb27392a11b93e8d43">y</a>);
<a name="l00140"></a>00140 
<a name="l00141"></a>00141 <span class="preprocessor">#endif</span>
</pre></div></div>
</div>
<!--- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>Tout</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Fichiers</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Fonctions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Définition de type</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Énumérations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Valeurs énumérées</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<hr class="footer"/><address class="footer"><small>Généré le Thu Jun 7 2012 15:48:57 pour ChompBombs par&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.3 </small></address>
</body>
</html>
